"use strict";

module.exports = {
  up: async (queryInterface, Sequelize) => {
    await queryInterface.bulkInsert(
      "users",
      [
        {
          account: "admin",
          password: "123456",
          role_id: 3,
          gender: "male",
          name: "LLL",
          age: 18,
          phone: "18122223333",
          address: "123 Main St",
          is_show: 1,
          created_at: new Date(),
          updated_at: new Date(),
        },
      ],
      {}
    );
  },

  down: async (queryInterface, Sequelize) => {
    // 删除 account 为 'admin' 的用户记录
    await queryInterface.bulkDelete(
      "users",
      {
        account: "admin",
      },
      {}
    );
  },
};
